/**
 * 卡片配置
 * 机构管理 organ-manage
 */
const cardConfig = {
  'organ-manage': {
    // cardName: '机构管理',
    cardType: 'TableCard',
    cardData: {},
    dataType: 'table',
    // 是否树状
    isTree: true,
    // 是否树状配置
    treeConfig: {
      id: 'id',
      parentId: 'parentId',
      childrenKey: 'children'
    },
    moduleBtnList: [

      {
        label: '新增',
        icon: 'el-icon-plus',
        type: 'primary',
        id: 'organ-manage-add',
        authId: 'grass-core:dept:add'
      },
      // {
      //   label: '导入',
      //   icon: 'el-icon-upload2',
      //   id: 'organ-manage-import'
      // },
      // {
      //   label: '导出',
      //   icon: 'el-icon-download',
      //   id: 'organ-manage-download',
      //   downType: 'downloadFile',
      //   downPath: '/energy-carbon/grass-core/dept/export'
      // },
      {
        label: '批量删除',
        type: 'danger',
        plain: true,
        icon: 'el-icon-delete',
        id: 'organ-manage-deleteBatch',
        authId: 'grass-core:dept:batchDelete'
      },
      {
        label: '展开列表',
        type: 'default',
        icon: 'el-icon-s-unfold',
        clickType: 'expand-retract-table',
        id: 'table-expand'
      },
      {
        label: '收起列表',
        type: 'default',
        icon: 'el-icon-s-fold',
        clickType: 'expand-retract-table',
        id: 'table-retract'
      }
    ],
    mainClass: 'main-padding20',
    isMultiple: true,
    // paginationParams: { page: 1, limit: 10 },
    path: 'organManage.queryPage',
    id: 'organ-manage'
  }
}

export default {}
export { cardConfig }
